<div style="max-height: 550px;overflow-y:scroll">
    <div class="box-body">
        <h4>基本信息</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>提报单号</th>
                    <th>提报时间</th>
                    <th>费用类型</th>
                    <th>刷单类型</th>
                    <th>订单号/费用描述</th>
                    <th>国家</th>
                    <th>销售员</th>
                    <th>返款类型</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ $ra->reimburse_no }}</td>
                    <td>{{ $ra->created_at }} </td>
                    <td>{{ \App\Models\Reimburse\ReimburseApply::$_feeType[$ra->fee_type] }}</td>
                    <td>{{ \App\Models\Reimburse\ReimburseApply::$_rType[$ra->r_type] }}</td>
                    <td>{{ $ra->order_no }}</td>
                    <td>{{ \App\Models\Basics\SysCountry::getCountryById($ra->country_id) }}</td>
                    <td>{{ \App\Util\User::getUsernameById($ra->seller_id) }}</td>
                    <td>{{ \App\Models\Reimburse\ReimburseApply::$_paidType[$ra->paid_type] }}</td>
                </tr>
                </tbody>
            </table>
            <table class="table">
                <thead>
                <tr>
                    <th>亚马逊SKU</th>
                    <th>公司SKU</th>
                    <th>产品名称</th>
                    <th>品类</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ $ra->seller_sku ?? '' }}</td>
                    <td>{{ $ra->sku->psku_code ?? '' }}</td>
                    <td><span class="label" style="color: #000;font-weight: 500;font-size: 85%;padding: .2em 0 .3em;">{{ $ra->sku->psku_cn ?? '' }}</span></td>
                    <td><span class="label" style="color: #000;font-weight: 500;font-size: 85%;padding: .2em 0 .3em;">{{ isset($ra->sku->classify_id) ? \App\Models\Product\ProductClassify::getTitleById($ra->sku->classify_id) : '' }}</span></td>
                </tr>
                </tbody>
            </table>
            <table class="table">
                <thead>
                <tr>
                    <th>订单联系人</th>
                    <th>备注</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td><span class="label" style="color: #000;font-weight: 500;font-size: 85%;padding: .2em 0 .3em;">{{ $ra->order_atten }}</span></td>
                    <td><span class="label" style="color: #000;font-weight: 500;font-size: 85%;padding: .2em 0 .3em;">{{ $ra->remarks }}</span></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="box-body">
        <h4>留评</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>状态</th>
                    <th>链接</th>
                    <th>时间</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ \App\Models\Reimburse\ReimburseApply::$_reviewStatus[$ra->review_status] }}</td>
                    <td>
                        <span style="color: #000;font-weight: 500;font-size: 85%;padding: .2em 0 .3em;">
                            <a href="{{ $ra->review_link }}" target="_blank">{{ $ra->review_link }}</a>
                        </span>
                    </td>
                    <td>{{ $ra->review_at }}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="box-body">
        <h4>明细</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>付款名称</th>
                    <th>支付方式</th>
                    <th>支付账号</th>
                    <th>货币</th>
                    <th>支付金额(原币)</th>
                    <th>申请状态</th>
                    <th>审核状态</th>
                    <th>付款状态</th>
                    <th>付款凭证</th>
                    <th>财务备注</th>
                </tr>
                </thead>
                <tbody>
                @foreach($ra->paid->sortBy('order_by') as $item)
                    <tr>
                        <td>
                            @if($item->order_by == 1)
                                一次性付款
                            @elseif($item->order_by == 2)
                                第一次付款
                            @elseif($item->order_by == 3)
                                第二次付款
                            @else
                                佣金
                            @endif
                        </td>
                        <td>{{ $item->paid_method ? \App\Models\Reimburse\ReimburseApply::$_paidMethod[$item->paid_method] : '' }}</td>
                        <td><span class="label" style="color: #000;font-weight: 500;font-size: 85%;padding: .2em 0 .3em;">{{ $item->paid_account_no }}</span></td>
                        <td>{{ $item->currency_code }}</td>
                        <td>{{ $item->paid_amount }}</td>
                        <td>{{ \App\Models\Reimburse\ReimbursePaid::$_applyStatus[$item->apply_status] }}</td>
                        <td>{{ \App\Models\Reimburse\ReimbursePaid::$_auditStatus[$item->audit_status] }}</td>
                        <td>{{ \App\Models\Reimburse\ReimbursePaid::$_paidStatus[$item->paid_status] }}</td>
                        <td>
                            @if(!empty($item->paid_file))
                                {!! \App\Models\Reimburse\ReimbursePaid::getImage($item->paid_file,80,80) !!}
                            @endif
                        </td>
                        <td><span class="label" style="color: #000;font-weight: 500;font-size: 85%;padding: .2em 0 .3em;">{{ $item->remarks }}</span></td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
